<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="http://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
    <style>
        .hi{
             border: 1px solid green;   
        }
        #target{
             width: 200px;
            height: 100px;
            background-color: red;
        }
    </style>
    
    
</head>
<body>
   
   
   
   <ul>
       <li class="bb">axe</li>
       <li id="x" action="abc" ></li>
       <li action="abd">axe</li>
       <li class="bb">abdede</li>
       <p>dddd</p>
   </ul>
   
   <a href="http://www.sohuc.com">go shou</a>
   
      <input type="text" vlaue="aadfd"/>
       <button>xxdfs</button>
       <button>tttt</button>
       
       <div id="target"></div>
   
   
   <script>
        $(function(){
        
            $(":button:first").on("click",function(e){
              $.ajax({
                type:'POST',
                  url:'regist',
                  data:{uname:'john',psd:'123',age:100}
              }).done(function(msg){
                   alert(msg.id);
              });
            
              
            });
         $(":button:nth(1)").on("click",function(e){
              $("#target").fadeToggle(3000);
            
              
            });
        
        });
    </script>
    
</body>
</html>
















